package serv

import (
	"d-serv-go/server/core/bean"
	"d-serv-go/server/core/db"
)

type ServAop interface {
	BeforeSave(bean *db.ParamBean)
	BeforeBatchSave(bean *db.ParamBean)
	BeforeDelete(bean *db.ParamBean)
	BeforeQuery(bean *db.ParamBean)
	BeforeFinds(bean *db.ParamBean)
	BeforeByid(bean *db.ParamBean)
	BeforePrint(bean *db.ParamBean, outBean *bean.OutBean)
	BeforeStart(bean *db.ParamBean, bean2 bean.Bean)
	BeforeFinish(bean *db.ParamBean)
	BeforeExp(bean *db.ParamBean)
	BeforeImp(bean *db.ParamBean)
	BeforeExpZip(bean *db.ParamBean)
	BeforeImpZip(bean *db.ParamBean)
	AfterSave(bean *db.ParamBean, out *bean.OutBean)
	AfterBatchSave(bean *db.ParamBean)
	AfterDelete(bean *db.ParamBean)
	AfterQuery(bean *db.ParamBean)
	AfterFinds(bean *db.ParamBean)
	AfterByid(bean *db.ParamBean)
	AfterStart(bean *db.ParamBean)
	AfterFinish(bean *db.ParamBean)
	AfterExp(bean *db.ParamBean)
	StartWf(bean *db.ParamBean)
	// below is comm_serv
	Query(paramBean *db.ParamBean) *bean.OutBean
	Finds(paramBean *db.ParamBean) *bean.OutBean
	Save(paramBean *db.ParamBean) *bean.OutBean
	// TODO future work: byid,count,save,add,modify,batchSave,delete,imp,exp,expZip,impZip
}
